package com.xjgz.aio.socket.pro.extension.decoder;

import java.nio.ByteBuffer;

public interface SmartDecoder {

    /**
     * 解码
     */
    boolean decode(ByteBuffer byteBuffer);

    /**
     * 获取本次解决到的完整数据
     */
    ByteBuffer getBuffer();
}
